//
//  SMSUtils.swift
//  SmartCheckIn
//
//  Created by Cidy Chou on 2017/9/1.
//  Copyright © 2017年 CidyChou. All rights reserved.
//

import Foundation

class SMSUtils {
    
    let version = "2014-06-30"
    let ip  = "https://api.ucpaas.com.443"
    
    let SMS_SID = "3ddfd9ea443c791045cef4787427d0e9" //accountSid
    let SMS_TOKEN = "2fa9612bb0a2bb8be8b577c727d9a186"
    let SMS_APPID = "54359105e94f4003aebe97f5820f84e6"
    let SMS_TEMPLATEID = "111197"
    
    
    
/**
        发送短信验证码接口
     
            appid ：短信平台 SMS_APPID
            accountSid : 短信平台 Account sid
            token : 短信平台 Auth Token
            toPhone ： 手机号码
            templateId ：短信模版ID 
            code : 验证码
     
     */
func sendVerificationCode(toPhone:String,code:String) -> String {
        
    
    
        
        return ""
    }
    
    
    func JointUrl() -> String{
    
        let urlStr = "\(ip)/\(version)/Accounts\(SMS_SID)/Messages/templateSMS?sig="
        
        return urlStr
    }
    
    
}
